package com.translate.web.api.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.controller.base.AbstractCommonController;
import com.translate.entity.ReceivablesPic;
import com.jwt.IJwtUtil;
import com.param.impl.IdPageParam;
import com.translate.web.service.IReceivablesPicService;
import com.basic.service.contract.IBaseService;
import com.translate.vo.ReceivablesPicVO;

@RestController
@RequestMapping("receivablesPic")
public class ReceivablesPicController extends AbstractCommonController<ReceivablesPic, IdPageParam> {
	private IReceivablesPicService service;
	private IJwtUtil jwtUtil;

	public ReceivablesPicController(IReceivablesPicService service) {
		this.service = service;
	}

	protected IBaseService<ReceivablesPic> getBaseService() {
		return this.service;
	}

	protected <VO> Class<VO> getTarget() {
		return (Class<VO>) ReceivablesPicVO.class;
	}

	@Autowired
	public void setJwtUtil(IJwtUtil jwtUtil) {
		this.jwtUtil = jwtUtil;
	}
}